<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%-- @author: Christian Baumhof --%>

<%-- Print button --%>
<div id="printButton">
	<a href="javascript:window.print()"><img alt="button.print"
		src="images/print.png"><br> <s:text name="button.print" /></a>
</div>

<%-- Title --%>
<h1>
	<s:text name="title.protocol" />
</h1>

<%-- Subject Title + description --%>
<h2>
	<s:property value="subject.title" />
	-
	<s:property value="subject.description" />
</h2>

<%-- selected Maniple --%>
<table class="formTable">
	<tr>
		<td><s:text name="lbl.maniple" /></td>
		<td><s:property value="maniple.name" /></td>
	</tr>
</table>

<%-- Data table --%>
<s:form>
	<table>
		<%-- Table headline --%>
		<tr>
			<th><s:text name="lbl.student" /></th>
			<th><s:text name="lbl.matrNr" /></th>
			<th><s:text name="lbl.examDate" /></th>
			<th><s:text name="lbl.grade" /></th>
			<th><s:text name="lbl.try" /></th>
			<th><s:text name="lbl.lecturer" /></th>
			<th><s:text name="lbl.typist" /></th>
			<th><s:text name="lbl.entryDate" /></th>
			<th><s:text name="lbl.valid" />
		</tr>

		<%-- Result --%>
		<tr>
			<td><s:property value="student.lastName" />, <s:property
					value="student.firstName" /></td>
			<td><s:property value="student.matriculationNr" /></td>
			<td><s:property value="result.examination.date" /></td>
			<td><s:property value="result.grade" /></td>
			<td><s:property value="result.examTry" /></td>
			<td><s:property value="result.examniation.lecturer" /></td>
			<td><s:property value="result.typist" /></td>
			<td><s:property value="result.entryDate" /></td>
			<td><s:checkbox theme="simple" name="result.valid"
					disabled="true" value="result.valid" /></td>
		</tr>
	</table>
	<br>
	<%-- Oral result --%>
	<table>
		<%-- Table headline --%>
		<tr>
			<th><s:text name="lbl.oralExam" /></th>
			<th><s:text name="lbl.oralGrade" /></th>
			<th><s:text name="lbl.oralExamDate" /></th>
		</tr>

		<%-- Result --%>
		<tr>
			<td><s:checkbox theme="simple" name="result.oralExam"
					disabled="true" value="result.oralExam" /></td>
			<s:if test="hasOralExam">
				<td><s:property value="oralExaminationResult.grade" /></td>
				<td><s:property value="oralExaminationResult.date" /></td>
			</s:if>
			<s:else>
				<td>-</td>
				<td>-</td>
			</s:else>
		</tr>
	</table>
</s:form>

<%-- Success message --%>
<p>
	<s:text name="protocol.success" />
</p>

<%-- Oral exam overview and grade overview buttons --%>
<s:form theme="simple">
	<s:submit theme="simple" key="linkBar.gradeOverview"
		action="ShowGradeOverview" />
	<s:submit theme="simple" key="linkBar.oralExamOverview"
		action="ShowOralExamOverview" />
</s:form>